﻿using System;
using System.Collections.Generic;
using System.Text;
using MapCenterSystem.DataInfo;
using MapCenterSystem.DefineType;
using MapCenterSystem.DataAccess;

namespace MapCenterSytem.Process
{
    public class Place
    {
        public static IList<PlaceInfo> GetPlaceByName(String keyword, Coordinate location, int radius)
        {
            PlaceServices ps = new PlaceServices();
            return ps.GetPlaceByName(keyword, location, radius);
        }

        public static IList<PlaceInfo> GetPlaceByPlaceType(int placeType, Coordinate location, int radius)
        {
            PlaceServices ps = new PlaceServices();
            return ps.GetPlaceByPlaceType(placeType, location, radius);
        }

        public static IList<PlaceInfo> GetPlaceInArea(Coordinate start, Coordinate end)
        {
            PlaceServices ps = new PlaceServices();
            return ps.GetListPlaceInArea(start, end);
        }
    }
}
